package com.experiment06;

import com.experiment06.entity.Container;
import com.experiment06.entity.Ship;

import java.util.ArrayList;
import java.util.List;

public class Test2 {

    public static void main(String[] args) {
        Ship ship = new Ship(1, "Java 号", 200.0);
        List<Container> containers = new ArrayList<>();
        containers.add(new Container(1, 30.0));
        containers.add(new Container(2, 40.0));
        containers.add(new Container(3, 50.0));

            //ship = LoadShipService.loadShip(ship, containers);
            System.out.println("Ship name: " + ship.getName());
            System.out.println("启航");

    }
}
